package homework.Sort;
/***
 * 动物类
 */
public class Animal {
    /**颜色*/
    private  String color;
    /**年龄*/
    private  int age;
    /**品种*/
    private  String varieties;
    public Animal(){

    }
    public Animal(String color,int age,String varieties){
        this.color = color;
        this.age = age;
        this.varieties = varieties;
    }
    /**叫的方法*/
    public void shout(){
        System.out.println("这只动物会叫");
    }
    public String getColor(){
        return this.color;
    }
    public void setColor(String color){
        this.color = color;
    }
    public int getAge(){
        return this.age;
    }
    public void setAge(int age){
        this.age = age;
    }
    public String getVarieties(){
        return this.varieties;
    }
    public void setVarieties(String Varieties){
        this.varieties = varieties;
    }
}
